<template>
  <div>
    <div class="my-search">
      <i @click="goback" class="iconfont icon-xiangzuo btnLeft"></i>
      <p>我的喜欢</p>
    </div>
    <div class="find-content" :key="timer">
      <ul>
        <!-- <li>
            <img :src="`${copy[0].bsimg}`" alt="" />
            <p>
              {{ copy[0].bstxt }}
            </p>
            <p>{{ copy[0].bsfrom }}</p>
            <span>@{{ copy[0].bsauthor }}</span>
        </li> -->
        <li v-for="(item, index) in copy" v-bind:key="index">
          
            <img :src="`${item.bsimg}`" alt="" />
            <p>
              {{ item.bstxt }}
            </p>
            <p>{{ item.bsfrom }}</p>
            <span>@{{ item.bsauthor }}</span>
        </li>
        <!-- 点击加载更多 -->
        <p class="notxt">没有更多啦^~^</p>
      </ul>
    </div>
  </div>
</template>
<script>
export default {
  name: "Send",
  data() {
    return {
      copy: {},
      timer: "", //更新页面
    
    };
  },
  created() {
    console.log("刷新了");
  },
  methods: {
    goback() {
      //   location.reload();
      this.$router.go(-1);
      
    },
  },
  mounted() {
    this.copy = JSON.parse(sessionStorage.getItem("AllSend"));
   //  console.log("浏览器数据===>", this.copy[0].bsimg);

   //  this.timer = new Date().getTime();
   //  let setTime = setTimeout(() => {
   //    // this.timer = new Date().getTime();
   //    // location.reload();
   // //   sessionStorage.removeItem('AllSend');
   //  }, 5000);
   // location.reload();
   
  },
};
</script>

<style lang="scss" scoped>
.my-search {
  z-index: 99;
  width: 100%;
  height: 46px;
  background: #7ab4ff;
  position: fixed;
  left: 0;
  top: 0;
  display: flex;
  //   justify-content: space-around;
  //   align-items: center;
  i {
    width: 46px;
    height: 46px;
    font-size: 46px;
    color: rgb(255, 255, 255);
  }
  p {
    height: 46px;
    line-height: 46px;
    color: rgb(255, 255, 255);
    font-size: 20px;
  }
}
.find-content {
  width: 100%;
  margin-bottom: 56px;
  margin-top: 56px;
  ul {
    width: 344px;
    margin: 0 auto;
    border-radius: 7px;

    li {
      width: 310px;
      padding: 16px 17px;
      border: 1px solid rgb(238, 238, 238);
      box-shadow: 0 0 3px #bbb;
      background: #fff;
      margin-bottom: 10px;
      border-radius: 7px;
      //   box-sizing: border-box;
      img {
        margin-bottom: 16px;
        width: 310px;
        height: 176px;
        border-radius: 7px;
      }
      p {
        font-size: 16px;
        width: 100%;
        letter-spacing: 1.8px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        overflow: hidden;
      }
      span {
        width: 100%;
        display: inline-block;
        text-align: right;
        letter-spacing: 1.8px;
        font-size: 12px;
        margin: 12px 0;
      }
    }
  }
}
.notxt {
  width: 100%;
  text-align: center;
  font-size: 16px;
  margin: 30px 0 100px;
  color: #ccc;
}
</style>